const countHook = {
  state: {
    count: 1,
  },
  mutations: {
    increase(state) {
      state.count++
    }
  },
  actions: {

  },

  //类似计算属性,可以对state中的值进行处理
  getters: {
    myCount(state) {
      return `当前count：${state.count}`
    }
  }
}
export default countHook;